package com.sinochem.yunlian.ship.base.biz;

import com.sinochem.yunlian.ship.base.entity.BsTideThridPort;
import com.sinochem.yunlian.ship.base.mapper.BsTideThridPortMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ship-admin
 * @email shipadmin@sinochem.com
 * @date 2018-05-18 15:10:42
 */
@Service
public class BsTideThridPortBiz  {
    @Autowired
    private BsTideThridPortMapper tideThridPortMapper;



    /**
     *  根据条件查询潮汐观察点
     * @param inMap
     * @return
     */
    public List<BsTideThridPort> findTideByCondition(Map inMap){
        return tideThridPortMapper.findTideByCondition(inMap);
    }

    /**
     *  更新潮汐数据
     * @param tideThridPort
     * @return
     */
    public int updateById(BsTideThridPort tideThridPort){
        return tideThridPortMapper.updateById(tideThridPort);
    }

}